package com.itheima.day01;

import java.util.concurrent.FutureTask;

public class threafDemo05 {
    public static void main(String[] args) {
        MyCallable01 mc=new MyCallable01();

        FutureTask<String> ft=new FutureTask<>(mc);
        Thread th1=new Thread(ft);
        th1.setName("小鸟");
        th1.setPriority(10);
        th1.start();
        MyCallable01 mc2=new MyCallable01();
        FutureTask<String> ft2=new FutureTask<>(mc2);
        Thread th2=new Thread(ft2);
        th2.setName("小狗");
        th2.setPriority(10);
        th2.start();

    }
}
